package simtester.test.modules

import geb.Module
import simtester.test.pages.HomePage
import simtester.test.pages.LoginPage

class AuthModule extends Module {

    static content = {
        form { $('form') }
        loginButton { form.login() }
    }
    
    void login(String user, String pw) {
        form.with {
            username = user
            password = pw
        }
        loginButton.click()
    }
}
